.class public final Ldgb/b;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldgb/b$d;
    }
.end annotation


# static fields
.field private static f:Ljava/lang/String;

.field private static g:Landroid/content/Context;

.field private static h:Ldgb/a;

.field private static i:I

.field private static j:Z


# instance fields
.field private a:Z

.field private final b:Ljava/lang/Runnable;

.field private final c:Ljava/lang/Runnable;

.field private d:Landroid/content/IntentFilter;

.field private e:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Ldgb/b;->a:Z

    .line 3
    new-instance v1, Ldgb/b$a;

    invoke-direct {v1, p0}, Ldgb/b$a;-><init>(Ldgb/b;)V

    iput-object v1, p0, Ldgb/b;->b:Ljava/lang/Runnable;

    .line 4
    new-instance v1, Ldgb/b$b;

    invoke-direct {v1, p0}, Ldgb/b$b;-><init>(Ldgb/b;)V

    iput-object v1, p0, Ldgb/b;->c:Ljava/lang/Runnable;

    const/4 v1, 0x0

    .line 5
    iput-object v1, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    .line 6
    iput-object v1, p0, Ldgb/b;->e:Landroid/content/BroadcastReceiver;

    .line 7
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    sput-object v1, Ldgb/b;->g:Landroid/content/Context;

    .line 8
    new-instance v1, Ldgb/a;

    sget-object v2, Ldgb/b;->g:Landroid/content/Context;

    const-string v3, "z"

    invoke-direct {v1, v2, v3}, Ldgb/a;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    sput-object v1, Ldgb/b;->h:Ldgb/a;

    .line 9
    invoke-static {p1}, Ldgb/e0;->a(Landroid/content/Context;)Ldgb/e0;

    move-result-object p1

    invoke-virtual {p1}, Ldgb/e0;->a()Ljava/lang/String;

    move-result-object p1

    sput-object p1, Ldgb/b;->f:Ljava/lang/String;

    .line 10
    sput v0, Ldgb/b;->i:I

    .line 11
    sput-boolean v0, Ldgb/b;->j:Z

    return-void
.end method

.method static synthetic a(Ldgb/b;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Ldgb/b;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 24
    invoke-static {p1}, Ldgb/x;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object p1

    .line 25
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ldgb/c;

    .line 26
    invoke-static {v0}, Ldgb/x;->a(Ldgb/c;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 27
    invoke-direct {p0, v0}, Ldgb/b;->a(Ldgb/c;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 28
    sget-boolean v1, Ldgb/z;->b:Z

    if-eqz v1, :cond_1

    .line 29
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Success to putToDB with token : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Ldgb/b;->f:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " packageName: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 30
    invoke-virtual {v0}, Ldgb/c;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "stat.AppInfoService"

    .line 31
    invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 32
    :cond_1
    invoke-static {v0}, Ldgb/x;->b(Ldgb/c;)V

    goto :goto_0

    :cond_2
    return-void
.end method

.method static synthetic a(Ldgb/b;)Z
    .locals 0

    .line 2
    invoke-direct {p0}, Ldgb/b;->i()Z

    move-result p0

    return p0
.end method

.method static synthetic a(Ldgb/b;Ldgb/c;)Z
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Ldgb/b;->a(Ldgb/c;)Z

    move-result p0

    return p0
.end method

.method private a(Ldgb/c;)Z
    .locals 4

    const-string v0, "stat.AppInfoService"

    .line 16
    invoke-direct {p0, p1}, Ldgb/b;->b(Ldgb/c;)Ldgb/i;

    move-result-object v1

    .line 17
    :try_start_0
    sget-object v2, Ldgb/b;->h:Ldgb/a;

    invoke-virtual {v2, v1}, Ldgb/a;->a(Ldgb/i;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 18
    sget-boolean v2, Ldgb/z;->b:Z

    if-eqz v2, :cond_0

    .line 19
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Success to putToDB with token : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Ldgb/b;->f:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " packageName: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 20
    invoke-virtual {p1}, Ldgb/c;->a()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 21
    invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    return v1

    :catch_0
    move-exception p1

    .line 22
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_1

    const-string v1, "Failed to push DbAppInfo into Datebase!"

    .line 23
    invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_1
    const/4 p1, 0x0

    return p1
.end method

.method static synthetic a(Z)Z
    .locals 0

    .line 4
    sput-boolean p0, Ldgb/b;->j:Z

    return p0
.end method

.method private b(Ldgb/c;)Ldgb/i;
    .locals 9

    .line 7
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0}, Ldgb/l;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 8
    :cond_0
    invoke-static {}, Ldgb/l;->a()Ljava/lang/String;

    move-result-object v5

    .line 9
    invoke-static {v5, v0}, Ldgb/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 10
    sget-object v1, Ldgb/b;->g:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    .line 11
    sget-object v1, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v1}, Ldgb/p0;->a(Landroid/content/Context;)Ldgb/p0;

    move-result-object v1

    const-string v3, "android.{F46B117B-CBC7-4ac2-8F3C-43C1649DC7PK}"

    const-string v4, ""

    .line 12
    invoke-virtual {v1, v3, v4}, Ldgb/p0;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v6, 0x0

    const-string v7, "android.{F46B117B-CBC7-4ac2-8F3C-43C1649DC7PV}"

    .line 13
    invoke-virtual {v1, v7, v6}, Ldgb/p0;->b(Ljava/lang/String;I)I

    move-result v6

    sput v6, Ldgb/b;->i:I

    if-eqz v4, :cond_1

    .line 14
    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_1

    .line 15
    sget-object v6, Ldgb/b;->h:Ldgb/a;

    sget v8, Ldgb/b;->i:I

    invoke-virtual {v6, v8}, Ldgb/a;->a(I)V

    :cond_1
    if-eqz v4, :cond_2

    .line 16
    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_3

    .line 17
    :cond_2
    invoke-virtual {v1, v3, v0}, Ldgb/p0;->a(Ljava/lang/String;Ljava/lang/String;)Z

    .line 18
    sget v0, Ldgb/b;->i:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Ldgb/b;->i:I

    invoke-virtual {v1, v7, v0}, Ldgb/p0;->a(Ljava/lang/String;I)Z

    .line 19
    :cond_3
    new-instance v6, Ldgb/i;

    sget-object v3, Ldgb/b;->f:Ljava/lang/String;

    sget v4, Ldgb/b;->i:I

    move-object v0, v6

    move-object v1, p1

    invoke-direct/range {v0 .. v5}, Ldgb/i;-><init>(Ldgb/c;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V

    return-object v6
.end method

.method static synthetic d()Z
    .locals 1

    .line 1
    sget-boolean v0, Ldgb/b;->j:Z

    return v0
.end method

.method static synthetic e()Ldgb/a;
    .locals 1

    .line 1
    sget-object v0, Ldgb/b;->h:Ldgb/a;

    return-object v0
.end method

.method private f()V
    .locals 3

    .line 1
    iget-object v0, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.PACKAGE_ADDED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.PACKAGE_REMOVED"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 4
    iget-object v0, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.PACKAGE_REPLACED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 5
    iget-object v0, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    const-string v1, "package"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 6
    :cond_0
    iget-object v0, p0, Ldgb/b;->e:Landroid/content/BroadcastReceiver;

    if-nez v0, :cond_1

    .line 7
    new-instance v0, Ldgb/b$c;

    invoke-direct {v0, p0}, Ldgb/b$c;-><init>(Ldgb/b;)V

    iput-object v0, p0, Ldgb/b;->e:Landroid/content/BroadcastReceiver;

    .line 8
    :cond_1
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    iget-object v1, p0, Ldgb/b;->e:Landroid/content/BroadcastReceiver;

    iget-object v2, p0, Ldgb/b;->d:Landroid/content/IntentFilter;

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method private g()V
    .locals 2

    .line 1
    iget-object v0, p0, Ldgb/b;->e:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_0

    .line 2
    sget-object v1, Ldgb/b;->g:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    :cond_0
    return-void
.end method

.method private h()Z
    .locals 8

    .line 1
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    const/4 v1, 0x0

    const-string v2, "rt"

    invoke-virtual {v0, v2, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v2, "al"

    const-wide/16 v3, -0x1

    .line 2
    invoke-interface {v0, v2, v3, v4}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    .line 3
    sget-object v2, Ldgb/b;->h:Ldgb/a;

    const/4 v3, 0x1

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ldgb/a;->a()I

    move-result v2

    const/16 v4, 0x5000

    if-le v2, v4, :cond_0

    return v3

    .line 4
    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    sub-long/2addr v4, v6

    const-wide/32 v6, 0x48190800

    cmp-long v0, v4, v6

    if-lez v0, :cond_2

    .line 5
    sget-object v0, Ldgb/b;->h:Ldgb/a;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ldgb/a;->b()Z

    move-result v0

    if-nez v0, :cond_1

    return v3

    .line 6
    :cond_1
    invoke-direct {p0}, Ldgb/b;->j()V

    :cond_2
    return v1
.end method

.method private i()Z
    .locals 9

    .line 1
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0}, Ldgb/z;->a(Landroid/content/Context;)Z

    move-result v0

    const-string v1, "stat.AppInfoService"

    const/4 v2, 0x0

    if-nez v0, :cond_1

    .line 2
    sget-boolean v0, Ldgb/z;->b:Z

    if-eqz v0, :cond_0

    const-string v0, "Network is unavailable!"

    .line 3
    invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    return v2

    :cond_1
    :try_start_0
    const-string v0, "appInfo"

    .line 4
    sget-object v3, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0, v3}, Ldgb/z;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 5
    sget-object v3, Ldgb/b;->h:Ldgb/a;

    const/16 v4, 0x3e8

    invoke-virtual {v3, v4}, Ldgb/a;->b(I)Ldgb/a$a;

    move-result-object v3

    .line 6
    invoke-virtual {v3}, Ldgb/a$a;->a()Ljava/lang/String;

    move-result-object v4

    .line 7
    invoke-static {v4}, Ldgb/o;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 8
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    const-string v6, "token"

    .line 9
    sget-object v7, Ldgb/b;->f:Ljava/lang/String;

    invoke-virtual {v5, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 10
    sget-object v6, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v6}, Ldgb/l;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v6

    .line 11
    invoke-static {}, Ldgb/l;->a()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7, v6}, Ldgb/j;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "pu"

    .line 12
    invoke-virtual {v5, v8, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v6, "ci"

    .line 13
    invoke-virtual {v5, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v6, "ap"

    .line 14
    invoke-static {}, Ldgb/l;->b()[B

    move-result-object v7

    .line 15
    invoke-static {v4, v7}, Ldgb/j;->a(Ljava/lang/String;[B)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v6, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 16
    sget-object v4, Ldgb/b;->g:Landroid/content/Context;

    const-string v6, "UTF-8"

    .line 17
    invoke-static {v5, v6}, Ldgb/m0;->a(Ljava/util/HashMap;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "SAInfo"

    const v7, 0x11001

    .line 18
    invoke-static {v4, v5, v0, v6, v7}, Ldgb/c0;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 19
    sget-boolean v4, Ldgb/z;->b:Z

    if-eqz v4, :cond_2

    .line 20
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Success to reportAppInfo with maxRowId :"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 21
    invoke-virtual {v3}, Ldgb/a$a;->b()J

    move-result-wide v5

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 22
    invoke-static {v1, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 23
    :cond_2
    sget-object v4, Ldgb/b;->h:Ldgb/a;

    invoke-virtual {v3}, Ldgb/a$a;->b()J

    move-result-wide v5

    invoke-virtual {v4, v5, v6}, Ldgb/a;->a(J)V

    .line 24
    sget-object v3, Ldgb/b;->g:Landroid/content/Context;

    const-string v4, "rt"

    invoke-virtual {v3, v4, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 25
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    const-string v4, "al"

    .line 26
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    .line 27
    invoke-interface {v3, v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    .line 28
    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    return v0

    :catch_0
    move-exception v0

    .line 29
    sget-boolean v3, Ldgb/z;->d:Z

    if-eqz v3, :cond_4

    const-string v3, "Can not report AppInfo!"

    .line 30
    invoke-static {v1, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_4
    return v2
.end method

.method private j()V
    .locals 3

    .line 1
    new-instance v0, Ldgb/c;

    sget-object v1, Ldgb/b;->g:Landroid/content/Context;

    const-string v2, "beat"

    invoke-direct {v0, v1, v2}, Ldgb/c;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 2
    invoke-direct {p0, v0}, Ldgb/b;->a(Ldgb/c;)Z

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 5
    iget-boolean v0, p0, Ldgb/b;->a:Z

    if-eqz v0, :cond_0

    return-void

    .line 6
    :cond_0
    sget-boolean v0, Ldgb/z;->b:Z

    const-string v1, "stat.AppInfoService"

    if-eqz v0, :cond_1

    const-string v0, "Start!"

    .line 7
    invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 8
    :cond_1
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0}, Ldgb/x;->a(Landroid/content/Context;)V

    .line 9
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0}, Ldgb/z;->d(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Ldgb/b;->a:Z

    if-nez v0, :cond_3

    .line 10
    sget-boolean v0, Ldgb/z;->b:Z

    if-eqz v0, :cond_2

    const-string v0, "Not the app to report!"

    .line 11
    invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_2
    return-void

    .line 12
    :cond_3
    sget-object v0, Ldgb/b;->h:Ldgb/a;

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Ldgb/a;->b()Z

    move-result v0

    if-nez v0, :cond_4

    .line 13
    iget-object v0, p0, Ldgb/b;->c:Ljava/lang/Runnable;

    invoke-static {v0}, Ldgb/b0;->a(Ljava/lang/Runnable;)Z

    .line 14
    :cond_4
    iget-object v0, p0, Ldgb/b;->b:Ljava/lang/Runnable;

    invoke-static {v0}, Ldgb/b0;->a(Ljava/lang/Runnable;)Z

    .line 15
    invoke-direct {p0}, Ldgb/b;->f()V

    return-void
.end method

.method public b()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Ldgb/b;->a:Z

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    sget-boolean v0, Ldgb/z;->b:Z

    if-eqz v0, :cond_1

    const-string v0, "stat.AppInfoService"

    const-string v1, "Shutdown!"

    .line 3
    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1
    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Ldgb/b;->a:Z

    .line 5
    invoke-direct {p0}, Ldgb/b;->g()V

    .line 6
    sget-object v0, Ldgb/b;->g:Landroid/content/Context;

    invoke-static {v0}, Ldgb/z;->e(Landroid/content/Context;)V

    return-void
.end method

.method public c()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Ldgb/b;->a:Z

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-direct {p0}, Ldgb/b;->h()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Ldgb/b;->c:Ljava/lang/Runnable;

    invoke-static {v0}, Ldgb/b0;->a(Ljava/lang/Runnable;)Z

    :cond_1
    return-void
.end method
